﻿using System.Collections.Generic;

namespace Model.Entities
{
    public class Group : BaseEntity
    {
        #region Private Fileds

        private IList<User>         _users          = new List<User>();
        private IList<Interest>     _interests      = new List<Interest>();
        private IList<GroupMessage> _groupMessages  = new List<GroupMessage>();

        #endregion

        public virtual string Title { get; set; }
        public virtual string Type  { get; set; }
        public virtual User   Owner { get; set; }

        public virtual IList<User> Users
        {
            get { return _users;  }
            set { _users = value; }
        }

        public virtual IList<Interest> Interests
        {
            get { return _interests;  }
            set { _interests = value; }
        }

        public virtual IList<GroupMessage> GroupMessages
        {
            get { return _groupMessages;  }
            set { _groupMessages = value; }
        }
    }
}
